#!/usr/bin/python

import re

f = open("passwd")
m = re.compile(r'sbin')
j = 0
for i in f:
    if m.findall(i):
        j += 1
f.close()
print(j)
